package com.example.whatrubbish.service;

import com.example.whatrubbish.model.Question;
import com.example.whatrubbish.vo.PageBean;

import java.util.List;

public interface QuestionService {
    List<Question> selectRand();

    PageBean<Question> selectByCondition(Integer pageIndex, Integer pageSize, String title);

    int insert(Question question);

    int update(Question question);

    int delete(Integer id);
}
